<template>
  <div class="content">
    <Air title="地产分类"></Air>
    <List :list='categories'></List>
    </div>
</template>

<script>
import List from './components/List'
import {getCategoriesApi} from '@/api/categories'
export default {
  components:{
    List
  },
  data(){
    return {
categories:[]
    }
  },
  created(){
this.getCategories()
  },
  methods:{
    async getCategories(){
     let {data} = await getCategoriesApi()
     console.log(data)
     this.categories=data
    }
  }
}
</script>

<style>

</style>